@if(empty($info))
        <!-- 购物车空 -->
<div class="shopping-none main">
    <div class="none-wrap">
        <i></i>
        <div class="info">
            购物车空空的哦~，去看看心仪的商品吧~<br/>
            <a href="/ypt_shop_list">去购物&#62</a>
        </div>
    </div>
</div>
<!-- 购物车内容 -->
@else
    <input type="hidden" id='user_id' value="{{$user_id}}">
    <div class="shopping-cont main" id="list">
        <div class="title">
            <div class="til">全部商品<span>{{$count}}</span>个</div>
        </div>
        <div class="shopping-wrap" >
            @foreach($info as $k=>$v)
                <div class="table info-font" stockNum="20">
                    <table>
                        <thead>
                        <tr>
                            <th width="">商品信息</th>
                            <th width="140px">库存</th>
                            <th width="160px">单价</th>
                            <th width="180px">数量</th>
                            <th width="180px">合计（元）</th>
                            <th width="170px">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>
                                <a href="javascript:;" target="blank"><img src="{{$v->img1}}" alt=""></a>
                                <a href="javascript:;" target="blank">{{$v->product_name}}<span>【规格：{{$v->spec_name}}】</span><span>【品牌：{{$v->brand_name}}】</span></a>
                            </td>
                            <td class="stock-num"><div>{{$v->stock}}</div></td>
                            <td class="price"><div>￥{{$v->price}}.00</div></td>
                            <td>
                                <div class="info-num">
                                    <a href="javascript:;" class="pre"></a>
                                    <input type="text" id="info-num" value="{{$v->number}}">
                                    <a href="javascript:;" class="next"></a>
                                </div>
                            </td>
                            <td class="total"><span>￥{{$v->a_price}}.00</span></td>

                            <td>
                                <a href="javascript:;" class="a-delete" rel="{{$v->cart_id}}">删除</a>
                                <a href="javascript:;" class="btn-accounts">去结算</a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            @endforeach

            <div class="delete-all">
                <a href="javascript:;"><i></i>清空购物车</a>
            </div>
        </div>
    </div>
@endif